 

<div class="container_topmenu">
	<div class="grid_12">
		<div class="grid_3">
			<h5>User Group</h5>
		</div>
		<span class="topmenu"><?php //if (in_array('users_groups', $this->permission->permissions)): ?>
		<a href="<?php echo site_url('/ssm/add_group'); ?>" class="button" id="btnAdd">Add Group</a>
			<?php // endif; ?></span>
	</div>
</div>

<div class="container_12">
 
	<div class="grid_12">
		<table class="default" width="100%">
			<tr>
				<th><?php echo order_link('ssm/usergroup','GroupName','Group Name',3); ?>
				</th>
				<th class="tiny"><?php echo $createdate;?></th>
				<th class="tiny"><?php echo $edit;?></th>
				<th class="tiny"><?php echo $del;?></th>
			</tr>
			<?php foreach ($group as $detail){ ?>
			<tr>
				<td><?php echo $detail['groupName'];?>
				</td>
				<td style='width: 20%; text-align: center;'><?php echo dateFmt($detail['CreatedDate'], ($this->site->config['dateOrder'] == 'MD') ? 'M jS Y' : 'jS M Y');?>
				</td>
				<td style='width: 5%; text-align: center;'>
				<?php echo anchor('/ssm/edit_group/'.$detail['groupID'], '<img class="btnEdit" src="'.$this->config->item('staticPath').'/images/btn_edit.png" alt="Edit" title="Edit" '); ?>
					
				</td>
				<td style='width: 5%; text-align: center;'>
				<?php echo anchor('/ssm/delete_group/'.$detail['groupID'], '<img class="btnEdit" src="'.$this->config->item('staticPath').'/images/btn_delete.png" alt="Delete" title="Delete" ', 'onclick="return confirm(\'Are you sure you want to delete this?\')"'); ?>
				</td>
			</tr>
			<?php } ?>
		</table>
	</div>


	<div class="clear"></div>
	<div style='height: 30px'>
		<p style="text-align: right;">
			<a href="#" class="button grey" id="totop">Back to top</a>
		</p>
	</div>
 